package com.example.springboot_sdse_air.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 聊天会话实体类
 * 功能：存储聊天会话信息
 * 作者：王彬 202200111149
 * 日期：2025-06-14 20:09
 */
@Data
@TableName("chat_session")
public class ChatSession {

    @TableId(type = IdType.AUTO)
    @TableField("chat_id")
    private Integer chatId;

    @TableField("uid")
    private Integer uid;

    @TableField("pdf_id")
    private Integer pdfId;

    @TableField("title")
    private String title;

    @TableField("state")
    private String state;

    @TableField("`update`")
    private Timestamp updateTime;
}
